from random import Random


def str_color(s: str) -> str:
    if s == "[anonymní]":
        return "#666968"
    rand = Random(s)
    h = rand.randrange(360)
    s = rand.randint(60, 100)
    li = rand.randint(20, 80)
    return f"hsl({h},{s}%,{li}%)"


def str_bgcolor(s: str) -> str:
    if s == "[anonymní]":
        return "#121210"
    rand = Random("\0" + s)
    h = rand.randrange(360)
    s = rand.randint(80, 100)
    li = 5
    return f"hsl({h},{s}%,{li}%)"
